package com.ibuonline.b2b.entity;

import java.io.Serializable;

public class SysProperty implements Serializable {

	private static final long serialVersionUID = 3062044864201465951L;

	//fields
	private java.lang.String propertyKey;
	private java.lang.String propertyValue;
	private java.lang.String propertyType;
	private java.lang.Integer displayOrder;

	//default constructor
	public SysProperty() {
	}

	//getter
	public java.lang.String getPropertyKey() {
		return propertyKey;
	}
	public java.lang.String getPropertyValue() {
		return propertyValue;
	}
	public java.lang.String getPropertyType() {
		return propertyType;
	}
	public java.lang.Integer getDisplayOrder() {
		return displayOrder;
	}

	//setter
	public void setPropertyKey(java.lang.String propertyKey) {
		this.propertyKey = propertyKey;
	}
	public void setPropertyValue(java.lang.String propertyValue) {
		this.propertyValue = propertyValue;
	}
	public void setPropertyType(java.lang.String propertyType) {
		this.propertyType = propertyType;
	}
	public void setDisplayOrder(java.lang.Integer displayOrder) {
		this.displayOrder = displayOrder;
	}

	//equals method
	public boolean equals(Object other) {
		if (this == other)
			return true;
		if (!(other instanceof SysProperty))
			return false;

		final SysProperty sysProperty = (SysProperty)other;
		if (!this.propertyKey.equals(sysProperty.getPropertyKey()))
			return false;

		return true;
	}

	//hashCode method
	public int hashCode() {
		StringBuffer keys = new StringBuffer();
		keys.append(propertyKey).append(",");
		if (keys.length() > 0)
			keys.deleteCharAt(keys.length() - 1);
		return keys.toString().hashCode();
	}

	//toString method
	public String toString() {
		return new StringBuilder("SysProperty[")
			.append("propertyKey=").append(propertyKey).append(", ")
			.append("propertyValue=").append(propertyValue).append(", ")
			.append("propertyType=").append(propertyType).append(", ")
			.append("displayOrder=").append(displayOrder).append("]").toString();
	}
}